Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: Type Mismatch
~Justin Minluternivu 1.Dec.03 06:35 PM a Web browser
Domino Server All Releases All Platforms


For "normal" NotesItems (fields that aren't Rich Text AND don't contain an error value), the value of the field is returned as an array (or, more properly, a Variant containing an array). You are trying to compare the value of a field (Status) against a string:

If doc.Status = "New" Then

Since doc.Status is an array, you can't compare it directly to a string. You need to "extract" a string from the array before you can compare values:

If doc.Status(0) = "New" Then

This tells the code to look at the first member of the array and compare THAT value to the string "New".




Type Mismatch (~Dexter Kiboosi... 1.Dec.03)
. . RE: Type Mismatch (~Justin Minlute... 1.Dec.03)
. . . . RE: Type Mismatch (~Dexter Kiboosi... 1.Dec.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS